import xFetch, {
    get,
    post
} from '../util/xFetch';
import ajax from '../util/ajax';
import qs from 'qs';
import Service from '../service';

const API = {
    queryExpressCode: `${Service.baseUrl}/user/index/queryExpressCode`, // 查询快递公司
    queryExpress: `${Service.baseUrl}/user/index/queryExpress`, //查询物流
    confirm: `${Service.baseUrl}/user/express/confirm`, //签收、拒收
    getExpressCom: `${Service.baseUrl}/user/tool/getExpressCom`, //物流公司列表  未用
    getExpressRefuse: `${Service.baseUrl}/user/tool/getExpressRefuse`, // 添加
    getWechatConfig: `${Service.baseUrl}/user/tool/getWechatConfig`, // jssdk配置文件
    expressindex: `${Service.baseUrl}/user/express/index`, //快件列表
    comment: `${Service.baseUrl}/user/express/comment`, // 评价
    queryExpressTest: `${Service.baseUrl}/user/index/mock_location`, // 模拟位置数据
}
// 地图
export const queryExpressCode = async (params) => post(API.queryExpressCode, params)
export const queryExpress = async (params) => post(API.queryExpress, params)
export const confirm = async (params) => post(API.confirm, params)
export const getExpressCom = async (params) => post(API.getExpressCom, params)
export const getExpressRefuse = async (params) => post(API.getExpressRefuse, params)
export const getWechatConfig = async (params) => post(API.getWechatConfig, params)
export const expressindex = async (params) => post(API.expressindex, params)
export const comment = async (params) => post(API.comment, params)


export const queryExpressTest = async (params) => post(API.queryExpressTest, params)